public class Main{
	public static void main(String[] args) {
		Company m=new Company();
		m.setName("IBM");
		Employees e=new Employees();
		e.setName("zhang");
		e.setOld(23);
		e.setSalary(9000.123);
		System.out.println(e.getName()+"-"+e.getOld()+"-"+true+"-"+m.getName()+"-"+e.getSalary());
        
	}

}
class People{
	private String name;
	private int old;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getOld() {
		return old;
	}
	public void setOld(int old) {
		this.old = old;
	}
	public String toString() {
		return "Person [name=" + name + ", old=" + old + "]";
	}
}
class Company{
	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String toString() {
		return "Company [name=" + name + "]";
	}
	
}
class Employees extends People{
	private Company company;
	private double salary;		
	public Company getCompany() {
		return company;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
	public String toString() {
		return "Employees [company=" + company + ", salary=" + salary + "]";
	}	
}